package com.oocl.hw1.task1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;


public class Main {

	public static void main(String[] args) throws FileNotFoundException {

		TextAnalyzer textAnalyzer = new TextAnalyzer();
		Scanner scan = new Scanner(new FileInputStream("test.txt"));
		String line;
		while(scan.hasNext()){
			line = scan.next();
			textAnalyzer.analyzeText(line);
		}
		System.out.println(textAnalyzer.showRes());
	}
}
